script to class