algebra package