Improved add method to accept multiple inputs. Also, updated test method
accordingly.