Assignment 2 on subclassing