Added subclassing template to HW5