The echo just did what it was suppose to do and printed the parts but taking it out fixed the issue now I can see that the group was created when I leave the script and cat /etc/group. This was only a part of the entire program I had to write. However it was only part not working properly per the parameters of the project.