added skeleton for Decoder