third, fourth, fifth OOP homework