basic idea for ABCD but buggy

Signed-off-by: Aaron Chiu <aaronechiu@fb.com>