Setting up packages and class objects.