adds class and subclass functions to character