add example build code and refactor to work with example