Refactor deep-examples