Add dealloc method and example