Need Help

Can someone help how to model this? like how to merge the box with the cylinder? i tried model few times and it resulted in very bad topology when i subdivide it