you don't need to explicitly type these. type inference should take care of it. same comment for firstStatement, isFailure and all other variables that are being assigned :)