Added Scala Style Check and implemented the stuffs. Still need to add
Junit Test cases