Added a simple get_interval example.