Changed index on cout statement on L615 from -2 to -1 to prevent breaking when less than 3 age obs