removed break_loop as it was really unnecessary; added method definitions to class