Human-Inspired Robot Task Teaching and Learning