Here is the source code You are free to use it, modify it, etc.