the code given in the pdf will compile succesfully. 