An exercise while trying a tutorial.