First batch of solutions.  Problems 1 to 4.