Cuboid Function

Further reading here