Imported problem 1 & 2