example of views in code