updating some ruby basic functionality