Ruby code added