example and validation added