finished implementing cooking method class