Solution of the first and the third of the tasks for Hack Bulgaria CoreRuby course