Change Double-type in update()-method to Number