A commented, basic version.