Remove use of anonymous classes (Issue #6)

Removed use of anonymous classes in MainActivity.  No functional
difference.