Programming assignment for ml class