Added simple example of using Agent