Updated problems 1 and 3 with proper comments