added block example and made template agnostic for page or block usage