Refactor lib/quads.rb and Implement 'get_major' method (lib/quads/twins.rb)