Separe class and view