Problems 1-5 cleaned and working