Add appendRule method

Signed-off-by: Fadion Dashi <jonidashi@gmail.com>