Assignment #7
solution for assignment#8