Can I have a look at the source code? I want to see how you do this

Make it an open source project :p