first working version
added comparing test; can be runned from browser