Soft Computing Approach To Pattern Class