Setting up interface and classes.