codes in the ruby programming language