make for exercise 4
exercise 4 and input example