Implemented the tower class and add the respective methods to it.