Several Ruby pieces from my educational course