Support for first hit test example.

Added functions and constants to implement the first hit test example.