second working version codetwo.sh