Splitting up code into layouts.