prog assignment2