A completes function with a naive implementation