added task 9, richtext stuff