another hw1 attempt