Solving my problem in the simplest way possible