cleaned up learning spec