first two problems solved