update: defining and using classes