class fields working