Fix the code to retrieve observed values. Need to use push_back.