reforming code, added base class for Option definition, started at histogram class