hmwk 6 manage pg is basically working i think