Messy code for demonstration