Problems with segmentation violation
applied name conventions in powder.cpp