added keywords function & while, added test for function