6th problem just using a fold
8th problem