An alternative to quantum theory