Error: Process is not alive while implementing a Stack through genserver

Thanks a lot, I have figured out some of the problems and divided the program into modules now.