a noob copy of the printf function