this is sample programs in ruby on rails