Structure the code