Added code to take in input