diagram for cogs