first check in for assignment 2

wrote code for assignment2