changed to not static and added a nextLine to avoid infinite loop
completed add method as well as print method and use them in main class