added 4th task
some changes