Added clear() function
Testing clear() function now works