add lecture.java methods