Learning of composition