added convenience method getCosts for the membership data returned in previous call