Need windows 7 & 8 on one system

I just got a new computer with windows 8 and upgraded to 8.1. Now a few programs won't work.
Is there a way to install windows 7 & 8 on the same computer so I can keep my older programs, and how would I do this?

Thanks
 
Back