extend Hillclimbing.java