lab 7, module defined