random code related to course linear algebra I