lab 4: 3 in 1