Helper Class

Push as much code as possible from MainActivity to Helper.