snake class