Some code of my homework