Updated lrthw_ex4.rb file, completed with comments explaining functions.