How do cocoa beans grow?

Coaco beans grow inside of large pods. These large pods are grown in trees. Once dried out then the beans are removed from the pods.