In how many ways can five boxes numbered 1, 2, 3, 4, 5 be filled with 6 identical balls so that the first and the last box contain each at most one ball? (Some boxes may be empty.)

a) 1
b) 2
c) 3
d) 4