first code from lecturers