created exercise2 ruby file