Implement scan1 in terms of scan