how does an work