Fix sample code in readme so it compiles

I wasn't sure what the intention of 'view' was but I assume it should be view1.