removed 'gets' method from ruby b'cause of STDIN errors! and performed rempdelling of code