adding solution for check homeworks