How to store user-input data?