decoder, parser class defined