first version of semester problem