finished problem 3 (shell with function defs works)