Learning Elementary Movements Jointly with a Higher Level Task