first try to solve hw3