Helpful diagram I found online: