usage example and drawing functions