Tasks #3, #4 solving

Please add my tasks #3, #4 solving