Draw functions and realization