Learn about it here: http://chenkinworkshop.blogspot.com/2018/03/how-are-tops-of-stud-walls-fixed-in.html