get the two functions done! Only simple test performed