Finished chapter 3

Included solutions to exercises in chapter 3, focusing on sockets