Basic working version with code coverage