Fixed example. Define array property in constructor