Iranian educational methods and our own observations of physics students led us to devise a way of improving our students' ability to solve real-life problems. We designed a guided inquiry-based course 'Physics by photography' which we implemented for approximately 250 students. This revealed that this type of course could motivate students to learn and increase their ability to solve real-life problems.