Basic example refactored.