Examples from chapter 3 and moved unp.h to lib folder