4. There are four basket-ball players $A, B, C, D$. Initially, the ball is with $A$. The ball is always passed from one person to a different person. In how many ways can the ball come back to $A$ after seven passes? (For example $A \rightarrow C \rightarrow B \rightarrow D \rightarrow A \rightarrow B \rightarrow C \rightarrow A$ and
$A \rightarrow D \rightarrow A \rightarrow D \rightarrow C \rightarrow A \rightarrow B \rightarrow A$ are two ways in which the ball can come back to $A$ after seven passes.)