updated solar.py to work with array size