created class.cpp for field