State, Try and Either changed to Scala- like constructor