Trying to fix series() to take a user value for the two terms