added script to week4 tree