Completed part4 script