Methods used in Ruby which I will try to re-write in order to learn them