The output is correct, however, I miss conditions 2, 3, and 5.