added parsers for type class and instance declarations