working on problem #25