first fully working survival curve generator