Encoding approach #3