Finished product, fully commented