updating builder functions across examples to promote consistency