The tutorial was excellent but this code is incomplete and not working correctly.
Activity