Added top/bottom modification to rule 3