My solution to my problem