Updated code to use with book: Service oriented desgin with ruby and rails by Paul Dix