Can machines learn how to behave?