Simple exercises on Ruby.