Copied the Assignment Function