homework3-shell: implemented fg and bg, most worked