More work on tutorial 4