Changed shape method return types from void to boolean.