Fixed errors. Now file can be compiled