Implement private methods and add example