Created drawTT function