Sample code for public view