practicing to understand mvc model in rails