Added virtual function example