Hello. Is this sentence grammatically correct? His family members encouraged him to study law, his father being a lawyer. But he chose music.