Finilized Code