Sounds like a tale from thousand and one nights :)