first version
Merge https://github.com/gavrmike/curs4