Implemented Teacher Mode with datbase extraction. revision 2