Assignment 3 Class Inheritance