Added partition design pattern.