write Router and HttpRouter class