Switching from printf to cout because we are using string streams anyway, might was well just teach one style