Lab 5 and 6

Code for Lab 5 & 6