tested system call; part A completed