Added example with view injection