added class factory to maps library