code complete and functionalized