Implemented RIGHT in ruby