During the 20th century, a "communist state" came to be understood as any country ruled by a single party and guided by a Marxist–Leninist or Maoist ideology. These countries would also have a planned economy. The ruling class is the working class (the proletariat).