added average_observations.m