updated todo list and address book with inheritence from public classes and replaced alot of redundant code