documented and finished code