Lab2 first commit

Solved task 3, identified enough security problems to complete task 2.
Task 1 is incomplete.