The documentation for scaffold.pl shows how to set rules for opening the different parts, etc.
You can earn partial credit on this problem.