Assigment 3 submitted on 24/5/2014