added changeState-method with implementation, and added impl to constructor