struct/class example with copy operator