A Simple checkout class implemented in ruby