laboration 3-5 + example 6