Sample code for web framework