Refactored SSD. Working problem 1