submission for prog assignment 2