Added AppState Class Which Extends Application Class