P008: less ugly solution