Add punctuation to the following sentence: By trial and error  trying things making mistakes and learning from those mistakes  we have figured out how to make electric light to paint the ceiling of the Sistine Chapel to fly
By trial and error - trying things, making mistakes, and learning from those mistakes - we have figured out how to make electric light, to paint the ceiling of the Sistine Chapel, to fly.