Created methods to use in other classess