Uses model

Uses session and controller properly
Solved problems in examples