plastered code with preconditions / postconditions