added drawing routine to draw object.