The letters A, B, C, D, and E are to be arranged in five different boxes, one in each box in the following way. A must be between C and D, B must be next to E, and C cannot be in the first or fifth positions. How many different arrangements of these letters are possible?

How can you compute that it's 4?