project writeup and functioning code