[FYR] rewrite with scala
[FYR] remove .idea