what mechanical devices are used for