continued writing object class a little bit