first hard coded version OnlineCF, without considering products in different processes, just straightforward implementation