Teaching Interaction using State Diagrams