public static boolean check(Serializable object) {
		// TODO Auto-generated method stub
		if (object instanceof Grammar)
		{
			Grammar g=(Grammar) object;
		
			Production[] p=g.getProductions();
			//check first 3 productions to make sure this grammar is from conversion
			int count=0;
			if (p.length < 3)
				return false;
			for (int i=0; i<3; i++)
			{
				String lhs=p[i].getLHS();
				String rhs=p[i].getRHS();
				if (lhs.equals(LHS_DEFAULT[i]) && rhs.equals(RHS_DEFAULT[i]))
				{
					count++;
				}
			}
			if (count==3)
				return true;
			else
				return false;
			
		}

		return false;
	}