more setters and getters in Sample and Data