completed counting stars exercies. wrote files containing locations and brightness of the stars