This exercise was written in php, click
here
to download the file.