Adding factory to create manager classes