Homemade printf, school project