Not trying to reinvent the wheel

Found a way easier way to do the same thing