add virtual assignment operator sample