The brain is a kind of computer.
When you fail, you learn. When you succeed, you learn even more.