An immune system model in discrete time based on the analogy with the central nervous system