Added a more comprehensive example