I'm stuck at Week 2

As someone who have no prior programming experience or knowledge, I'm kinda struggling in week 2.

I've taken down notes, went through the source code but I'M STUCK :(

It was going smoothly and I managed to complete the week 0 and week 1 problem set but I'm stuck in this for almost 2 weeks now. I dont want to give up.