added basecode of assignement 2