Simple program line interpreter for class.