Asus x553M . Hangs after time period

Hello fellow programmers:) .I bought new laptop** ASUS X553M**. There is some strange things going on this laptop. After some (the *same every time *) period laptop hangs (does not react at all) untill I push turn off or it starts to react after while but all windows and programs are closed .
Is it OS problem or laptop?
Thank you very much .