Existing courses on agent-based modeling and simulating (ABMS) are mainly aimed at doctoral students and many modelers have acquired their ABMS skills by teaching themselves. This paper reports and reflects on the development of an undergraduate course on ABMS of social systems. It presents a problem-based approach to teaching ABMS of social systems, the Integrated Learning Outcomes (ILOs), and the course structure. This paper discusses the constructive alignment of the syllabus, presents the results from the course evaluation, and draws conclusions for further editions of the course. Rather than proposing how such courses should be structured, we discuss the feasibility of the pursued research-based learning approach. Our goal is to inspire other researchers and teachers to develop similar courses, to encourage the establishment of a general curriculum, and to promote ABMS in undergraduate education.