an elaborate mechanical puzzle