homework control structures