started on pledge create function, need view too