Edited chapter9b (input)