Pedagogy is then designed to help the students make these mental constructions and relate them to the mathematical concept of coset. In our work, we have used cooperative learning and implementing mathematical concepts on the computer in a programming language which supports many mathematical constructs in a syntax very similar to standard mathematical notation. Thus students, working in groups, will express simple examples of cosets on the computer as follows.