first working version of site with very basic learning algorithm