# Exercise 2: Viewing the Methods in Your Project

In this exercise, you will list the methods defined in the Blink class. From this list, you will be able to view the source code for the method. To successfully complete this exercise, you must have completed the previous exercise, Viewing the Class Hierarchy.

1. In the class viewer, scroll down to the Constructor Index label.
   A constructor is a special method that initializes an object when it is created. The class viewer lists one constructor, `Blink`, defined inside the Blink class.
2. Click Blink.
   The source editor displays the source code for the constructor `Blink`. The first line of the constructor is highlighted in blue.
3. In the class viewer, scroll down to the Method Index label.
   The Blink class contains five methods: `init`, `paint`, `start`, `stop`, and `run`.
4. Click `paint`.
   The source editor displays the source code for the `paint` method. The first line is highlighted in blue.

Next lesson:

  Exercise 3: Finding Strings in Your Code