program 3.1 & 3.2: lseek/open/creat