hw-2-processes: working imp for processes