create bin class