he's getting the note of lines one by one through a simple iteration, so getting them from the controller would be unnecessary and extra work 
@rami-khalil