used a switch statement to set days of the week as numbers.