shape classes with area method hackerrank solution python