You can quit a program either by choosing Quit from the menu bearing its name ( next to the menu), or by right-clicking its Dock icon (or Control-clicking) and then choosing Quit from the pop-up menu.