extracted building data into a seperate def
extract buildings data into seperate file
optimize code
implemented compare