added basecode for assignment 3