One method will do. We also need a parameter called listClass which is the class for the list element