creating cubicle and cubiclePool class