Simplified the buildSection method