working version, Igor accepted, no graphic part