some homework from Bash Scripting class