Teaching Procedures in Humans and Robots