adding functions file to learning stuff