ensure result is defined at the start, add ex 7 skeleton