Refactor addition sample