Beginning changes to Ruby code