Add example demonstrating virtual methods