writing object examples