jgretsch hw assignment 6