Homework and Examples from the OOP in Java Class