1.summary file added 2.encode function completed