This paper focuses on a problem-solving experiment which was an important part of a study of how students and teachers use laptops in their classes with TI-Nspire CAS technology and software, with or without concomitant use of handheld devices. Of particular interest has been the use of this technology for improving students' mathematical learning, problem-solving methods and deeper understanding of mathematics. Eight classes of students in theoretical programmes at upper secondary level in Sweden had continuous access to TI-Nspire CAS in mathematics during a whole semester. They used the software, and in some classes handhelds, during a whole course and also implemented the national test for the course on their laptops.