A basic network simulator using Java