hw-4: implementation of the syscall, before compilation