transferred drawing into classes