Added Model, View and Controller for pg.