Have you read the doc ? , You find some examples hear www.compass-project.org/.../samples-library.html