Add printPost method