Completed 3 exercises of assignment 2