Corrected wrong attributes' names in Factory class