The brain is a miraculous piece of biological machinery.