Note that MovieArray should be of type Movie[], rather than just Movie.