An interactive teaching environment