Example for both implementations