FrontController Pattern

code to do job of FrontController