If each side of a tetrahedron is an equilateral triangle painted white or black, five distinct color patterns are possible: (1) all sides white, (2) all black, (3) just one side white and the rest black, (4) just one side black and the rest white, and (5) two sides white, while the other two are black.
If each side of a cube is painted red or blue or yellow, how many distinct color patterns are possible?