Homework assignment 2 PKD