add hw3 provided file and test
implement only_capitals