Finished assignment D1