Fun playing with strf

I edited sudo nano /etc/apt/sources.list by adding main contrib non-free on a new line. ctl X to save and exit. It did save my addition, but when I ran sudo apt update I got an error. E: Type ‘main’ is not known on line 2 in source list /etc/apt/sources.list
E: The list of sources could not be read.
The first line was deb signed by bla bla bla gridtracker, ending in debian/ ./
I tried adding the text at the end of ./ that did not work either. I managed to put things back to normal using nano and deleting the added txt.
The last time I played with nano was in 2018. Where did I go wrong?
Sorry for taking up your time. Thanks for helping me. I actually like Linux CLI, but I have to be very careful. That’s why I take notes. Thanks, Bob

sorry make you confuse. what i mean is like this. this is mine, please modify according yours:

before
deb https://deb.debian.org/debian bookworm main contrib non-free-firmware

just add non-free

so it will become like this:
deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

Thanks bali, I’ll try again in the morning.
Bob