splitting classes from programs