combined cup.coffee and cap.coffee into one file