finished check_sets method and passed tests