Code from AST subject at UPC