[#4] Changed the desired state into a class.