other types in OOP homework