Factory

separated classes into class files
created factory class that creates JSON based on schema