add pigeon solution by Ariel