This paper presents an interactive framework for pupils to learn the basic concepts of programming by means of the functional programming language Erlang. Beside the idea of the framework we also sketch the different learning targets and exercises to deepen programming skills. The framework was successfully utilized in a programming course for pupils in their last three school years. Categories and Subject Descriptors K.3.2 [Computer and Infor