mechanical device working