Intermediate code

Intermediate code ... not finished yet.