solution lab1 PIOS