Eh more info? What part do you not understand? Do you even have an IDE? I assume this is for school, and if so I'd recommend you to try yourself first, information how to solve all parts of your assignment can be googled. Just copy-pasting something someone gives you will just give you more trouble your next assignment.