adding solutions to exercise 1 on page5 in the book practical reverse engineering