adding java beans architecture