finished basic script