my Ruby Code