Problems 2-5 solved