is a sample of matter that retains its shape and density when not confined. ​