(refactor) Teacher.js more modular. Closes #30