How to train your homing pigeon