updated examples
rewrite abstacting to remix