Rewrote client code in coffee