prog assignment 3