Code structure and formatting