Created managerDependent class

Used so that each time in the API's the function need not be written
again and again.