Statistical Mechanics of Learning door