Changed examples to use setters