I am a Ph.D. student in the USA. I have a contract with the university to work 20 hours a week. However, I have an idea and want to propose it to a company. Then, I sign a contract with them to do that programming project for them. Is this allowed or not?