lab.sh fully implemented