Fix View pattern code snippet