Code created while in class for Object-Oriented programming