Adding pclass functions. Hierarchy class doing stuff