fix up all grammar flaws in this text:
When science class arrived he felt really excited because John, the science teacher, told them that he was going to explain them a very interesting thing.
When the time for science class arrived, he felt really excited because John, the science teacher, told them that he was going to explain to them a very interesting thing.