Added object materializer class. Refactored