clean bash script for question 3