There's not really any need to create a class for this functionality. Rather than doing it like this, just prompt users to enter their min number of upvotes each time they run the program, store that value, and pass it directly to the Reddit class. See below for how I would do it...