Implemented comparable so observations can be sorted