refactoring of coffee code