Adding bash script solution