finish the first chapter of ptrace