added ruby file exercise4