Fully cleaned up code and finalized practical