added script class
setting up basic functionality
fixed a typo...
separated test code