Added some ruby codes