add twosum class