first prototype
almost done hw3