This is part of cocktail making taking some whole ingredients and mashing them together to release their juices or extracts in the case of fresh herbs. It's done with a muddler, a specially designed tool, however you can also do it with the handle of a wooden cooking spoon.