Wrong and bad code because my homework is due.