did a practice problem for type class creation and inheriting from a base class also made with type class creation