added version that extends Application in instead of activity