Basic Drawing and Event Handling