working on factories and added image of the orginal schema