wrote simple finance script