Basic ruby code