Relativity Interview Question

Create different shape classes that computed area, given a key value for that shape.