code snippets for Cash Call.