A methodology to design a coffe machine