Ruby homeworks