add gradle build scripts
add main domain classes and unit tests for them