added base class for worms