In-Context Learning: A Case Study of Simple Function Classes