First working version with example output.