Problems 1 through 4 done