Espresso machine with assisted tamping