From an purely pedantic Marxist standpoint, that is not true. Marx identified several classes. It’s just that he saw societal transformational potential in both the bourgeoisie (a revolution he lived and was living through) and the proletariat (a revolution that he expected and wanted to happen).