re factored and re designed the xbank