constructing simple machine by cog wheels