Problem2 and Problem10