Created functions required by exerciese