Add doubler class and tests