Separated code in several classes