homework exercise commit with examples