An elementary proof of a universal approximation theorem