adding dependencies and basic lgm class