writing peer class