Made a trap base class