added pdf of the code