contrivance
noun
°a (mechanical) device to perform a certain task.
°a means, such as an elaborate plan or strategy, to accomplish a certain objective.