added fraction snippet