Add automatically invoked functions sample

Constructor, Copy constructor, destructor, and equal operator.