ruby ex2 try 1