Computational thinking (CT) has been recognized as a collection of understandings and skills required for new generations of students not only proficient at using tools, but also at creating them and understanding the implication of their capabilities and limitations.The objective of this research was to develop a module of solved problems for the development of CT in first-year computer engineering students at the University of Cienfuegos, Cuba. Students depend on current research to understand the definition, function, and culture of CT and to consider how it can improve their analytical and critical skills. A contextualized definition of the CT method is proposed as a cognitive process executed by humans to solve problems using computational concepts. This method improves CT in terms of decomposition, pattern recognition, algorithm design, abstraction, data representation, problem decomposition, algorithmic thinking, and generalization of patterns, simulation and evaluation. The research carried out is an experimental design with a pretest and a posttest, with a control group and an experimental group to which the intervention was applied, both with 18 students. This article describes a study developing and incorporating CT modules and assessing their effect on the comprehension of CT principles by preservation teachers as well as their computing attitude. The results show that the implementation of analytical thought in education courses will successfully affect the comprehension of CT principles by preservice students.