working finally! hate M$
working lab 4