make classForFactory a property