Fixed example
Applied new code conventions