I accidentally made this for the first homework initially. This was my mistake, but it's still ok code.