HP-SLP assignment 4