Added rules for for, while and do-while statements with very basic test coverage