finished simple refund investor function