centrality test and completed View.java