Expanding the options issue#2
make base class for common functions