split apps into classes