LAB3 Directed Code (2.4,2.5)