Added a function to make arrays objservables