* code for task#304.