Refactor synthetize with class