A coffee machine simulator writen in java