An electronic device provided. The electronic device includes a first body part including a first connection member and a second body part including a second connection member. At least one of the first connection member and the second connection member includes and a portion having a first flat area and a second area. The second area having a generally curved configuration and extending from the first flat area for magnetically coupling the first body part and the second body part to each other.