solving until 4