Create an Apex Class

Next, let’s create an Apex class to debug. This class removes cold accounts from a list so that you can focus on more promising clients.
  1. Create an Apex class called AccountViewerController.
  2. Replace your class’s default contents with this code.
  3. Save AccountViewerController.cls.