simplifying the code for demonstration purposes