implemented smallbox class