Updating the first day of the week code