Practice code - more learnings on rails