Wrote the constructor, addAll, clear, and equals methods.