The code now passes most of the rubocop tests