morelli's partial solution for the party challenge