Assigment 3 for DIT948 2014