Reconstruction of solar activity for the last millenium using 10Be data