refactoring. create Sevice.java