problem1 from the paper intro