initial implementation of fork()