ugly exercise 8.3