Making Transaction an internal class