Finished coding the back-end

Back-end, without styling