Exercise 2: completed do_fork