Mr. X eating curd/yoghurt should be considered as occupying third trophic level. Producers or green plants (first trophic level) are consumed by herbivores (second trophic level) and from them curd/yoghurt (made from dairy breed) is consumed by third trophic level organisms like man.