I'm about to sign a long terms terms contract for software development and maintenance. This job implies working with several applications and creating new ones. It seems to be difficult to put all of the tasks and assignments I'm going to working on and I totally understand that the company I'm going to work with has to make sure they keep rights for the software I create for them. I personally think it's fair the company is going to own any code and IP rights under their project.
On the other hand I'd like to make sure my own projects or any side projects that I may take part in the future do not / will not fall under this agreement. I am talking about any other code that I write in my free time commercial/open source in a non-competing field.
So I'd like to include a general sentence to acknowledge that I (or some other project) will still keep any rights for my(their) code while the current project keeps any right for the code (designs, written text) I write specifically for them.
What would be a good example of such clause?