finished problem 1, should check over 1e