Finished the main activity class