I've removed your long and complex post because you haven't given any indication about what you understand about this assignment nor with what you need help.

Please repost and supply the above information. Then we'll be glad to help you.