[refactoring] encapsulation for disk and partition classes