Code I wrote based on thenewboston's android programming tutorials