lab 4.1 + 4.2