Fix compile errors
Implement the Impl struct