example of how to use manager