contrivance
US /kənˈtraɪ.vəns/
UK /kənˈtraɪ.vəns/

1.
a thing that is created skillfully and inventively to serve a particular purpose
:
•
The elaborate clockwork was a marvel of mechanical contrivance.
•
The new security system is an ingenious contrivance.