<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def indent(block, spaces):
 """ indents paragraphs of text for rst formatting """

    new_block = ''
    for line in block.split('\n'):
        new_block += spaces + line + '\n'
    return new_block