solved 12-16, improved exectime