A cylindrical tennis ball container can contain maximum three ball stacked on one another. The top and bottom balls also touch the lid and the base of the base of the container respectively. If the volume of a tennis ball is 240 cm3, then what is the volume of the container?