You can put the code as an article as well with a bit of explanation.