Creating and using virtual methods