vidyasagar - added validations to answer