created class for BET Node