What's this main function for? I'm a bit confused about what this class does.