Assignment 2 for 2nd semister