Use "out of ignorance" in a sentence

1. Could it be that he or she was acting impulsively or out of ignorance?

2. As a lawyer who knows his rights, he Clamoured for public hearing which is constitutional but then, out of ignorance and self interest, you denied his right and furthermore, asking him to apologize