Does your assignment include understanding basic compiler error messages? The reason I ask is that not only is it telling you that you are defining something called “Object” twice, it even tells you which line so it’s practically impossible not to see it which has me confused. If you had used code-tags we’d be able to tell you which line the error messages tells you the problem is on but despite that you can see you’ve defined “Object” twice.
Just looks like you’ve copy/pasted the code into the same file. Everything is duplicated.