added automatic class assignment to fields