Removed unwanted code
Removed the partition method