sample php code implements MVC structure