better sample script