Completed assignment D1.