added toString method to Activity for testing
added exception class for linked lists