Updated code from book: Service oriented desgin with ruby by Paul Dix