Added virtual print function

Each class specifies how it prints to the console.