finished assignment 4, verified results