def find_matrix_size(coordinates):
    """
        This finds the maximum x and y values from the list of coordinates

        coordinates -> dict of coordinate objects
        returns max rows and columns values, plus 1 added space because of 0 indexing
    """
    max_x = 0
    max_y = 0
    for key, coordinate in coordinates.items():
        if coordinate.x > max_x:
            max_x = coordinate.x
        if coordinate.y > max_y:
            max_y = coordinate.y
    return max_y+1, max_x+1