Did some shit with matrices