Implemented createClass, getClasses and insertSession.