Teaching Robots to Perform Tasks Like Humans