Problems 2 and 3 done. Fixed spacing issue for Problem 1