My codes in Ruby for different tasks