Created evertything we need...something wrong with the calcutation of centers...code need tidying and comments