Fixed bug where classes weren't inheriting publicly.