implemented and tested keyword "defined"