added linux-ex, lib for x86, and some code for chapter2