A more OO way to do print statements from within reusable components