Fix syntax issues with RuboCop

Make instance method build_list private

Fix syntax issues with Rubocop