Working on 6.4.2 exercise