Added more function to Element class

Signed-off-by: Daniel Koo <danieljamin.koo@gmail.com>