Added a function
Merge branch 'master' of https://github.com/MarkFouche/cos301_2014_g2