first revision adding bonus feature