Update A Sample Ruby Code