changed script to contain a class