Working for 3 sections

2 states (opened, closed) implemented for 3 sections.