add coffee class and fixed bug