phase 5 code

All my code from phase 5