Here’s a tutorial I wrote on using components to help keep your code organized.