create write_bands() in Eigenval class