Create D1 Prototype Code

Code for our latest version of the prototype for deliverable 1