Enhanced code example with a view