printing interface strategy to address pset2 issues
interface for printing strategy in pset2