homeworks added for bash script