finished router class code w/compile