Put the measured amount of coffee grounds into the portafilter and then press them with a tamper by applying appropriate pressure. This pressure helps the coffee grinds settle down evenly inside the portafilter.