Yes, I'm aware that the assignments are not necessary but I find code which use assignments more clear.

If not using assignments is a preferred way for this project, I'm fine with changing it.