code for our second ctf exercise