edited the type classes