Implemented 'leftof' and 'rightof'