Assignment 3: Restore non-promise solution