Add a code sample for initializing the resolver