Simple inheritance, vector math and polymorphism in Processing.