HW5 finished v2
Before security