Added constructor, clear, and toString methods