Oops, initialize the 'elements' array correctly.