a solution for studying mvc framework