ObjectSlicing: An example that demonstrates how to handle properly Object Slicing