added methods for math and user input