@arteteco Most universities, at least in the USA, have soemthing all students sign when they register that basically says anything they produce for a class or using university resources is property of the university.
In fact the university I went to was unique in the sense that they actually gave students a percentage of any project they do that makes money for some reason.