SHAI fixes task3.1 - trap.c, proc.c