add problems 3 and 4 to php