Completed day6 problems