My implementation of ar for CS344