taking readline out of options and making it part of the class