Security with methods

- Package insecure removed.
- Methods defined.