clas inheritance bug fix; loading new classes on page