Added constructor
Added new logic for get teachers method