code complete and functional