Problems 1 to 5 done