wrote passing tests for pledges