Lab 4 solution