Divide code up into separate classes.