Coppied in classes and functions from home