Resolve programmingAssignment3