basic rectangle boundary with friction