How is a machine classified as a compound machine?