Trying to figure out patterns