Sample code for frontend application