now up to compiling and checking for compile errors