did a lot of stuff for Task 4