Created type to store samples. Started to further reduce memory consumption.