refactoring code
added code climate coverage dealio