code for seminar