progress on pseudocoding exercise 4