PR for code review

Also, will it be ok if the user does not input anything? There might be a case wherein there is no input, you might need to add input validation in this part.