wrote postconditions to the getters