Implemented the type command