added a complete example of usage