solution for js101 done