completed script for final project