moved pointer examples into pointers