added entity manager class