Added function to create arbitrary rectangular prisms