Added sample for method caching