Implement box class