Training robots like we train children