By modifying the Hopfield model we can retrieve the memories having ultrametric structure as the level we want to find by controlling the temperature in that model. A simple computer simulation was done to test the stability and the characteristics of the model.