validation & example added(2)