Problems 2 and 3

Not much for 2, still trying to understand 3