看你的造句,如果要求不高的话没有语法问题.但若是要衔接紧密语句精彩的话就要润色一下了.
One day ,when I am doing homework,I fall asleep .In my dream ,I have a brilliant pen ,which can help me do my homework.Because of its great memories,it can translate all sentences well.Except this it also can be used as a calculator .It has so many functions that I won't worry about questions which are related to homework.