When any one of the monkeys tried to climb the ladder, it was given an electric shock. Also, the remaining monkeys were sprayed with water.