Ruby code challenge- a checkout service