sixth and seventh OOP homework