Add ex4. All done except question 3
Make sure state array is given only in 0 and 1 chars