Good start to replicating printf()