Karl Marx's Critique of the Gotha Program

Read this work, in which Marx describes the transition from a capitalist to a socialist to a communist society, and it is here where he describes communism as a society in which each person should contribute according to their ability and receive according to their need.