Adding solutiions to problems 1-6