Notated and tested code.