modified init method to accept any number of arguments