first working version of ex 1.3