project ruby done (make all test pass)