problem6 fine imple