change type of stockId to Long and added toString method