created new factor variable called weekday.