made all dynamic objects into one class that returns a creation method