Changed print out of w and c to use to_s