def parse_command(command):
    """
    Parse a command for forward/down/up into a dict giving directions
    """
    command_type = command[0]
    command_amount = int(command[1])
    
    operations = {'forward':0, 'down':0, 'up':0, }
    
    operations[command_type] += command_amount
    
    return operations